#ifdef SYPX_MEMCHECK
#include "mmgr.h"
#endif

#include "Dog.h"

namespace SheepDefence 
{
	Dog::Dog()
	{
	}

	Dog::~Dog()
	{
	}

	Dog::Dog(SypX::FileInputStream& fin, SypX::Sprite* sprite)
	{
		SypX::String temp;

		SypX::ErrorLogger::getLogger() << "Loading Dog...\n";

		this->sprite = sprite;
		
		std::getline(fin, temp);	// Absorb name

		fin >> collision;
		fin >> speed;
		fin >> fear;
		fin >> pounce;
		fin >> att;
		fin >> stam;
		fin >> regen;

		SypX::ErrorLogger::getLogger() << "Loaded: " << speed << ", " << fear << ", " << pounce << ", " << att << ", " << stam << ", " << regen << "\n";

		type = DOG;
	}
}